<?php defined('BASEPATH') OR die('No direct access allowed.');
/**
 * Description of Reports
 *
 * Created on Jan 27, 2011
 * @author Ramon Gutierrez
 * @copyright Bitstop Network Services Inc.
 * @version 0.1
 */
class Reports extends Controller {
	function Reports()	{
		parent::Controller();
		global $header, $data;
		
		// Check if user is logged in
		if(!$this->session->userdata('account_id') ||
		($this->session->userdata('account_type') != 'site_admin' && $this->session->userdata('account_type') != 'company')) {
			redirect(site_url(), 'refresh');
		}
		
		// Header variables
		$header['extras'] = "";
		$header['grid'] = false;
		$header['title'] = $this->lang->line('title_branches');
		$data['module'] = 'branches';
		
		// Include global models for this module
		$this->load->model('branches_model');
	}
	
	function index() {
		global $header, $data;
							
		// Load up that header!
		$this->load->view('header', $header);
		
		// Load the sidebar
		$this->load->view('sidebar-left', $data);
		
		// Dish out the meat
		$this->load->view('under-construction', $data);
		
		// Let's see that footer!
		$this->load->view('footer');
	}
}